let DB_CONF = null;
let REDIS_CONF = null

if (process.env.NODE_ENV !== 'production') {
    DB_CONF = {
        host: 'localhost',
        port: '3306',
        user: 'root',
        password: '123456',
        database: 'myblog'
    }
    REDIS_CONF = {
        host: 'localhost',
        port: '6379',
    }
} else {
    DB_CONF = {
        host: 'localhost',
        port: '3306',
        user: 'root',
        password: '123456',
        database: 'myblog'
    }
    REDIS_CONF = {
        host: 'localhost',
        port: '6379',
    }
}

module.exports = {
    DB_CONF,
    REDIS_CONF
}
